/*
 * @Descripttion: 图片json
 * @version: 
 * @Author: qianlishi
 * @Date: 2021-08-29 07:07:23
 * @LastEditors: qianlishi
 * @LastEditTime: 2021-09-28 14:14:51
 */
export const widgetImagePlus = {
    code: 'widget-image-plus',
    type: 'html',
    label: '图片plus',
    icon: 'icontupian',
    options: {
      // 配置
      setup: [
        {
          type: 'el-input-text',
          label: '图层名称',
          name: 'layerName',
          required: false,
          placeholder: '',
          value: '图片plus',
        },
        {
          type: 'el-input-text',
          label: '字段名称',
          name: 'fieldName',
          required: false,
          placeholder: '',
          value: 'image',
        },
        {
          type: 'el-switch',
          label: '开启旋转',
          name: 'startRotate',
          required: false,
          placeholder: '',
          value: false,
        },
        {
          type: 'el-slider',
          label: '透明度',
          name: 'transparency',
          required: false,
          placeholder: '',
          value: 100
        },
        {
          type: 'el-input-number',
          label: '圆角',
          name: 'borderRadius',
          required: false,
          placeholder: '',
          value: '0'
        },
        {
          type: 'custom-upload',
          label: '图片地址',
          name: 'imageAdress',
          required: false,
          placeholder: '',
          value: 'http://10.108.26.197:9095/file/download/fd20d563-00aa-45e2-b5db-aff951f814ec',
        },
        {
          type: 'vue-color',
          label: '背景颜色',
          name: 'background',
          required: false,
          placeholder: '',
        },
        [
          {
            name: '动画设置',
            list: [
              {
                type: 'el-select',
                label: '动画名称',
                name: 'animateName',
                required: false,
                placeholder: '',
                selectOptions: [
                  { code: 'none', name: '无' },
                  { code: 'bounce', name: 'bounce' },
                  { code: 'flash', name: 'flash' },
                  { code: 'pulse', name: 'pulse' },
                  { code: 'rubberBand', name: 'rubberBand' },
                  { code: 'shakeX', name: 'shakeX' },
                  { code: 'shakeY', name: 'shakeY' },
                  { code: 'headShake', name: 'headShake' },
                  { code: 'swing', name: 'swing' },
                  { code: 'tada', name: 'tada' },
                  { code: 'wobble', name: 'wobble' },
                  { code: 'jello', name: 'jello' },
                  { code: 'heartBeat', name: 'heartBeat' },
                  { code: 'bounceIn', name: 'bounceIn' },
                  { code: 'bounceInDown', name: 'bounceInDown' },
                  { code: 'bounceInLeft', name: 'bounceInLeft' },
                  { code: 'bounceInRight', name: 'bounceInRight' },
                  { code: 'bounceInUp', name: 'bounceInUp' }
                ],
                value: 'none'
              },
              {
                type: 'el-input-text',
                label: '动画时间（秒）',
                name: 'animateDuration',
                required: false,
                placeholder: '',
                value: '1',
              },
              {
                type: 'el-input-text',
                label: '动画延时（秒）',
                name: 'animateDelay',
                required: false,
                placeholder: '',
                value: '1',
              },
              {
                type: 'el-input-text',
                label: '重复次数',
                name: 'animateRepeat',
                required: false,
                placeholder: '',
                value: '1',
              }
            ],
          }
        ]
      ],
      // 数据
      data: [],
      // 坐标
      position: [
        {
          type: 'el-input-number',
          label: '左边距',
          name: 'left',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'el-input-number',
          label: '上边距',
          name: 'top',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'el-input-number',
          label: '宽度',
          name: 'width',
          required: false,
          placeholder: '该容器在1920px大屏中的宽度',
          value: 300,
        },
        {
          type: 'el-input-number',
          label: '高度',
          name: 'height',
          required: false,
          placeholder: '该容器在1080px大屏中的高度',
          value: 200,
        },
      ],
    }
  }
